insheet using "C:/Users/chris/Dropbox/Research Ideas/Deliberative Efficacy/Data/Discussion_Cleaned_6.csv
pca initial_merit initial_bargaining initial_taxes initial_market initial_increased initial_gov initial_need initial_collective
predict pca_ini_ide_1 pca_ini_ide_2, score
pca final_merit final_bargaining final_taxes final_market final_increased final_gov final_need final_collective
predict pca_fin_ide_1 pca_fin_ide_2, score
g ide_diff_1 = pca_fin_ide_1 - pca_ini_ide_1
g ide_diff_2 = pca_fin_ide_2 - pca_ini_ide_2
g ide_add_diff = final_ideology - abs_initial_ideology


reg ide_diff_1 ide_diff_2 type age us_years anchor_1 anchor_2 i.education i.race i.female i.party_id i.initial_preference_strength, robust cluster(session)
reg ide_add_diff type age us_years anchor_1 anchor_2 i.education i.race i.female i.party_id i.initial_preference_strength, robust cluster(session)
reg impact_diff type age us_years anchor_1 anchor_2 i.education i.race i.female i.party_id i.initial_preference_strength, robust cluster(session)
reg frame_diff type age us_years anchor_1 anchor_2 i.education i.race i.female i.party_id i.initial_preference_strength, robust cluster(session)
reg diff_info_need type age us_years anchor_1 anchor_2 i.education i.race i.female i.party_id i.initial_preference_strength, robust cluster(session)
reg diff_int_eff type age us_years anchor_1 anchor_2 i.education i.race i.female i.party_id i.initial_preference_strength, robust cluster(session)
reg diff_ext_eff type age us_years anchor_1 anchor_2 i.education i.race i.female i.party_id i.initial_preference_strength, robust cluster(session)
reg final_ma_wage type age us_years anchor_1 anchor_2 i.education i.race i.female i.party_id i.initial_preference_strength, robust cluster(session)
reg final_highest_state type age us_years anchor_1 anchor_2 i.education i.race i.female i.party_id i.initial_preference_strength, robust cluster(session)
reg final_highest_planned type age us_years anchor_1 anchor_2 i.education i.race i.female i.party_id i.initial_preference_strength, robust cluster(session)

insheet using "C:/Users/chris/Dropbox/Research Ideas/Deliberative Efficacy/Data/Discussion_Cleaned_8.csv
pca initial_merit initial_bargaining initial_taxes initial_market initial_increased initial_gov initial_need initial_collective
predict pca_ini_ide_1 pca_ini_ide_2, score
pca final_merit final_bargaining final_taxes final_market final_increased final_gov final_need final_collective
predict pca_fin_ide_1 pca_fin_ide_2, score
g ide_diff_1 = pca_fin_ide_1 - pca_ini_ide_1
g ide_diff_2 = pca_fin_ide_2 - pca_ini_ide_2
g ide_add_diff = final_ideology - abs_initial_ideology

reg ide_diff_1 type, robust cluster(session)
reg ide_add_diff type, robust cluster(session)
reg impact_diff type, robust cluster(session)
reg frame_diff type, robust cluster(session)
reg diff_info_need type, robust cluster(session)
reg diff_int_eff type, robust cluster(session)
reg diff_ext_eff type, robust cluster(session)
reg final_ma_wage type, robust cluster(session)
reg final_highest_state type, robust cluster(session)
reg final_highest_planned type, robust cluster(session)
